-
Notifications
You must be signed in to change notification settings - Fork 265
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix bug #1782, forbidden chars in ID PATCH v2 #1787
Conversation
OrionError oe(SccBadRequest, "invalid character in URI"); | ||
return oe.render(ciP, ""); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems like something that should be done for all v2 requests (perhaps v1 also),
not only PATCH /v2/entities/{eid} ...
Should the check be on a higher level?
Somewhere in rest.cpp ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, it's only about the ID, not the whole path ...
NTC
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll check other 'paths' with ID for this point. If any is found, we can create an issue for all them and solve them in the same PR ...
LGTM |
@@ -16,3 +16,5 @@ | |||
- Add: type param for POST entity in v2 (Issue #982, #984) | |||
- Add: support for geo:point type as a way of specifying location attribute in NGSIv2 (Issue #1038) | |||
- Add: type param for PUT entity in v2 (Issue #988, #992, #1000) | |||
- Fix: not detecting forbidden chars in ID for PATH v2 (Issue #1782) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in ID -> in entityID ?
PATH -> PATCH ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed 297de23
LGTM |
…_uri_patch Fix bug #1782, forbidden chars in ID PATCH v2
Fix bug #1782, forbidden chars in ID PATCH v2
@kzangeli
@fgalan